<template>
    <div class="no-auto-change-price">
        <search-form :searchArray="searchArray">
            <el-button type="primary">选择商品</el-button>
        </search-form>
        <elTable :formData="formData" @tableData="getList" ref="dataInfo">
                <el-table-column prop="group" label="商品名称" align="center"></el-table-column>
                <el-table-column prop="group" label="类型" align="center"></el-table-column>
                <el-table-column prop="group" label="品牌" align="center"></el-table-column>
                <el-table-column prop="loginTime" label="产品规格" align="center"></el-table-column>
                <el-table-column prop="loginTime" label="生产厂家" align="center"></el-table-column>
                <el-table-column prop="loginTime" label="批准文號" align="center"></el-table-column>
                <el-table-column prop="loginTime" label="是否上架" align="center"></el-table-column>
                <el-table-column prop="action" label="操作" align="center" width="160px">
                    <template slot-scope="">
                    </template>
                </el-table-column>
            </elTable>
    </div>
</template>
<script>
import elTable from "@/components/xForm/elTable"
export default {
    name: 'noAutoChangePrice',
    components: {
        elTable
    },
    data () {
        return {
            formData: {},
            searchArray: [
                {
                    type: "input",
                    placeholder: "请输入商品名称",
                    types: "text",
                    value: "",
                    label: "商品名称"
                },
                {
                    type: "input",
                    placeholder: "请输入类型",
                    types: "text",
                    value: "",
                    label: "类型"
                },
                {
                    type: "input",
                    placeholder: "请输入品牌",
                    types: "text",
                    value: "",
                    label: "品牌"
                },
                {
                    type: "input",
                    placeholder: "请输入生产厂家",
                    types: "text",
                    value: "",
                    label: "生产厂家"
                },
              
            ],
        }
    },
    methods: {
        getList(pageNo) {
            let dataInfo = [
                {
                    id: 1,
                    name: "你好",
                    createTime: '1595244696000'
                },
                {
                    id: 2,
                    name: "你好1",
                    createTime: '1595244696000'
                },
            ];
            let total = 10;
            this.$nextTick(() => {
                this.$refs.dataInfo.loadData(dataInfo, total);
            });
        }
    }
}
</script>